new line php

39

php newline -

"\r\n"

php why "\n" not new line -

if "test\n" not return, new line
  1st solution:echo "test".PHP_EOL;
  2nd solution:<?php header('Content-type: text/plain'); ?>
  3rd solution:"<br />" instead of "\n" or "\r\n" 

Comments

Submit
0 Comments